package com.bkgy.controller.lzDaNew.controller;

import com.bkgy.controller.lzDaNew.entity.pdo.WorkStatusBarReq;
import com.bkgy.controller.lzDaNew.entity.pdo.WorkStatusBarRes;
import com.bkgy.controller.lzDaNew.service.ILzDaNewService;
import com.bkgy.sys.common.entity.ResultData;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.validation.Valid;

@Tag(name = "连退1630工艺辊打滑")
@Controller
@RequestMapping("/lzDaNew")
@RequiredArgsConstructor
public class LzDaNewController {
    private final ILzDaNewService service;

    @Operation(summary = "工艺辊服役状态")
    @PostMapping("/workStateBar")
    @ResponseBody
    public ResultData<WorkStatusBarRes> workStateBar(@RequestBody @Valid WorkStatusBarReq req) {
        return service.workStateBar(req);
    }
}
